package com.ddwl.schema.bo.gate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

/**
 * @Author hemiaojun
 * @Date 2020/9/23 9:13
 */
@ApiModel(description = "手机充值记录bo")
@Setter
@Getter
@NoArgsConstructor
public class MobileRechargeRecordBo {

    @ApiModelProperty("用户id")
    private String userId;
    @ApiModelProperty("来源")
    private String product;
    @ApiModelProperty("用户名")
    private String userName;

    @NotNull
    @Pattern(regexp = "^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$", message = "暂不支持此号码充值")
    @ApiModelProperty("手机号")
    private String mobile;

    @NotNull(message = "请选择充值商品")
    @ApiModelProperty("商品编号")
    private String itemId;

    @ApiModelProperty("面额")
    private Integer facePrice;

    @ApiModelProperty("售价")
    private BigDecimal price;

}
